package com.prs.crm.domain.approval;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
/**
 * @author liaopinghong
 * @version 2012-6-14 9:30:00 审批表
 * 
 * */
@Entity
@Table(name="app_approve")
public class Approve extends BaseEntity{
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private int id;
	/**审批意见*/
	private String yijian;
	@ManyToOne(cascade={CascadeType.ALL})
	@JoinColumn(name="application_id")
	private Application application;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getYijian() {
		return yijian;
	}
	public void setYijian(String yijian) {
		this.yijian = yijian;
	}
	public Application getApplication() {
		return application;
	}
	public void setApplication(Application application) {
		this.application = application;
	}
	
	
	
}
